<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>授权</title>
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/login.css"/>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">开放平台</a>
            <p class="navbar-text navbar-right">
                <a target="_blank" href="#" th:text="${user.username}"></a>
            </p>
        </div>
    </div>
</nav>
<div class="container" style="padding-top: 80px;width: 300px; color: #555; margin:0px auto;">
    <form id='confirmationForm' name='confirmationForm' action="/oauth/authorize" method='post'>
        <input name='user_oauth_approval' value='true' type='hidden'/>
        <p>
            <a target="_blank" th:text="${clientId}">未知</a> 应用将获得以下权限：</p>
        <ul class="list-group">
            <li class="list-group-item" th:each="name,stat : ${scopeList}">
                <label th:text="${name}"></label>:
                <input type="radio" th:name="'scope.'+${name}" value="true" checked>同意
                <input type="radio" th:name="'scope.'+${name}" value="false">拒绝
            </li>
        </ul>
        <p class="help-block">授权即表明你已同意<a href="#">服务协议</a></p>
        <button class="btn btn-success pull-right" type="submit" id="write-email-btn">授权</button>
        </p>
    </form>
</div>
<footer>
    <p>support by: lvcoding.com</p>
</footer>
</body>
</html>
